<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        img{
            display: block;
        }
        .box{
            width: 350px;
            margin: 0 auto;
            border: 5px solid black;
            position: relative;
        }

        img,p,h2{
            transition: all 1s;
        }
        .box .pic{
            width: 100%;
        }
        .box:hover .pic{
            transform: translateY(-20px);
            opacity: 0.5;
        }
        .box h2{
            position: absolute;
            left: 60px;
            top: 100px;
            color: white;
            transform: translateY(-200px);
        }
        .box:hover h2{
            transform: translateY(0px);
        }
        .box p{
            position: absolute;
            bottom: 0;
            left: 80px;
            transform: translateY(30px);
            opacity: 0;
        }
        .box:hover p{
            transform: translateY(-100px);
            opacity: 1;
        }
        .box .musicBtn{
            position: absolute;
            right: 10px;
            top: 10px;
            width: 40px;
            height: 40px;
            animation: run 2s linear infinite;
        }
        @keyframes run {
            from{
                transform: rotate(0deg);
            }
            to{
                transform: rotate(360deg);
            }
        }
        /* .box:hover .musicBtn{
            transform: rotate(360deg);
        } */
    </style>
</head>
<body>
    <div class="box">
        <img src="./img/1 (10).jpeg" alt="" class="pic">
        <div>
            <h2>能能酱酱</h2>
            <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Perferendis, saepe sunt odio consequatur laboriosam ipsam, magni eveniet repellat, voluptas illum nesciunt in nisi beatae ullam dignissimos quibusdam voluptatibus ab? Culpa.</p>
        </div>
        <img src="./img/1.png" alt="" class="musicBtn">
    </div>
</body>
</html>